﻿using System;
using System.Windows.Forms;

namespace Estimate
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Root root = new Root();
            formLogin formLogin = new formLogin(root);
            formLogin.ShowDialog();
            if (root.ConnectionState == ConnectionStates.Close) Application.Exit();
            else { formMain formMain = new formMain(root); formMain.ShowDialog(); }
        }
    }
}
